package cn.liuxiany.alibaba.job;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;

/**
 * @Description xxl-job
 * @Author liuxiany
 * @Date 2023/11/08
 */
@SpringBootApplication
@MapperScan("cn.liuxiany.alibaba.job.mapper")
public class JobApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(JobApplication.class, args);
        Environment environment = context.getEnvironment();

        System.out.println("访问链接：http://localhost:" + environment.getProperty("local.server.port"));
    }
}
